﻿/// <reference path="//Microsoft.WinJS.1.0/js/base.js" />
var ui = WinJS.Namespace.define("UI", {
    generateUI: function () {
        var applicationData = Windows.Storage.ApplicationData.current;
        var localSettings = applicationData.localSettings;

        var sessionKey = localSettings.values["sessionKey"];

        if (sessionKey==null || sessionKey=="") {
            document.getElementById("loggedContent").style.display = "none";
            document.getElementById("notLoggedContent").style.display = "block";
            document.getElementById("showLogin").className = "onFocus";
        }
        else {
            document.getElementById("notLoggedContent").style.display = "none";
            document.getElementById("loggedContent").style.display = "block";
        }
    }
});